//
//  UIView+Badge.h
//  FDLive
//
//  Created by CoderLT on 2017/9/19.
//  Copyright © 2017年 FDLive. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface BadgeLabel : UILabel
@property (nonatomic, assign) CGPoint offset;
@property (nonatomic, assign) CGFloat badgeSize;
@end

@interface UIView (Badge)
- (void)showUnread:(NSString *)text badgeSize:(CGFloat)badgeSize completion:(void(^)(BadgeLabel *badge, BOOL firstShow))completion;
- (void)showUnread:(NSString *)text badgeSize:(CGFloat)badgeSize offset:(CGPoint)offset;
- (void)showUnread:(NSString *)text offset:(CGPoint)offset;
- (void)showUnread:(NSString *)text;
@end
